<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <link rel="stylesheet" href="css/untangle.css" />
    <title>Drawing lines in Canvas</title>
    <!-- <title>Drawing Circles in Canvas</title> -->
</head>

<body>
   <img src="./images/sprite.jpg">
   <div></div>
</body>
<style>
    div {
        margin: 0 auto;
        width: 50px;
        height: 72px;
        background-image:url("./images/sprite.jpg");
        animation: play 1s steps(10) infinite
    }
    @keyframes play {
        0% {
            background-position:0px 0;
        }
        100% {
            background-position:-500px 0;
        }
    }
</style>
</html>